<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div role="main" class="main">
	<div class="row center">
		
			
				<div class="span6 offset2 margintop200">
					<html:form action="/login" method="post"
						onsubmit="return validateLoginForm(this);">
						<fieldset class="form-horizontal"">
							<div class="control-group ">
								<label class="control-label" for="username">Utilisateur</label>
								<div class="controls">
									<input id="username" name="username" class="input" type="text"
										value="">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="password">Mot de passe</label>
								<div class="controls">
									<input id="password" name="password" class="input"
										type="password" value="">
								</div>
							</div>
							<div class="form-actions">
								<button class="btn btn-primary" type="submit">Connexion</button>
							</div>
						</fieldset>
						<html:javascript formName="LoginForm" />
					</html:form>
				</div>
		<c:choose>
			<c:when test="${ exception != null }">
				
				<div class="row">
					<div class="span6 offset3">
						<div class="alert alert-danger">
							<strong>Erreur!</strong> ${exception }
						</div>
					</div>
				</div>
			</c:when>
		</c:choose>
	</div>
</div>